package com.sofn.spboot.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.sofn.spboot.inter.UserProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Service;

/**
 * author tianjie
 *
 * @date 2016/11/8
 */
@Service
public class UserService {

    @Reference
    private UserProvider userProvider;

    public void getUser(){
        userProvider.sayHello();
    }
}
